package edu.zut.method;

public class Demo5 {

    public static void main(String[] args) {
        int[] arr = new int[5];
        arr[0] = 100;
        test(arr);
        System.out.println("arr[0] = " + arr[0] + "---------");
    }

    /**
     * 参数是数组是，属于引用传递，传递的不是数据是地址
     * @param arr
     */
    public static void test(int[] arr){
        arr[0] = 200;
        System.out.println("arr[0] = " + arr[0]);
    }


}
